<template>
  <mobile-navigation-vue v-if="isMobileTerminal" />
  <pc-navigation-vue v-else />
</template>
<script setup>
import { isMobileTerminal } from '@/utils/flexible'
import mobileNavigationVue from './mobile/index.vue'
import pcNavigationVue from './pc/index.vue'
import { getCategory } from '@/api/category'
import { ref } from 'vue'
import { useStore } from 'vuex'
import { ALL_CATEGORY_ITEM } from '/src/constants/index.js'
const categoryData = ref([])
const store = useStore()
store.dispatch('category/useCategoryData')
// const getCategoryData = async () => {
//     const {categorys} = await getCategory()
//     categoryData.value = categorys
//     categoryData.value.unshift(ALL_CATEGORY_ITEM)
// }
// getCategoryData()
</script>
